import router from '@/router';
import axios from '@/utils/requests';
export function test() {
    return axios.get('/admin/page', { params: { page: 1, pageSize: 10 } })
}
export function toLogin() {
    router.push('/backend/login');
}

export function getPicture(url) {
    // console.log(`url: ${url}`);
    return axios.get('/common/download', {
        params: { name: url },
        responseType: 'blob'
    });
}
